package socket.BIO_NIO_AIO.aio;

import socket.BIO_NIO_AIO.aio.client.AsyncTimeClientHandler;

public class TimeClient {
    private static int port = 8081;
    public static void main(String[] args) {
        if(args != null && args.length > 0) {
            try {
                port = Integer.parseInt(args[0]);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }

        AsyncTimeClientHandler clientHandler = new AsyncTimeClientHandler("localhost", port);
        new Thread(clientHandler).start();
    }
}
